package br.com.opengti.webforum.ws.domain.impl;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Transient;

import br.com.opengti.webforum.ws.infra.dao.WebForumDomainSupport;

/**
 * @author Felipe Balbino <felipe@opengti.com.br>
 * @author Gabriel Cardelli <cardelli@opengti.com.br>
 */
@Entity
public class Vote {

	@Transient private WebForumDomainSupport webForumDomainSupport;
	
	@Id
	@GeneratedValue
	private Long id;
	
	@OneToOne
	private Usuario usuario;
	
	@ManyToOne
	private Resposta resposta;
	
	@Enumerated(EnumType.STRING)
	private VoteType voteType;

	
	
}
